package com.udata.server.dao;

import com.udata.server.dao.impl.UserDaoImpl;
import com.udata.shared.exception.OperationException;
import com.udata.shared.model.UserB;

public abstract class UserDao {
	private static UserDao instance = null;

	public static UserDao getinstance() {
		if (instance == null) {
			instance = new UserDaoImpl();
		}
		return instance;
	}

	public abstract UserB saveUser(UserB userB) throws OperationException;

	public abstract UserB login(String email, String password) throws OperationException;
	
	public abstract UserB getUser(String email) throws OperationException;
	
	public abstract UserB registerUser(UserB userB) throws OperationException;


}
